package bloodfang;

public class ProcBehavior {
	ProcType type = ProcType.BUFF;
	double icd = 0;
	double stacks = 0;
	double ppm = 0;
	double rppm = 0;
	double proc_chance = 0;
	double duration = 0;
	boolean scaling_with_haste = false;
	StatBlock stats = new StatBlock();
	public boolean scaling = true;
	public boolean proc_chance_scaling = false;
	
	public boolean isType(ProcType t){
		if(type == t)
			return true;
		return false;
	}
	
	public boolean isRPPM(){
		if(rppm > 0)
			return true;
		return false;
	}
	
	public boolean hasICD(){
		if(icd > 0)
			return true;
		return false;
	}
	
	public boolean hasDuration(){
		if(duration > 0)
			return true;
		return false;
	}
	
	public boolean hasStacks(){
		if(stacks > 0)
			return true;
		return false;
	}

	public boolean isPPM() {
		if(ppm > 0)
			return true;
		return false;
	}
	
	public boolean isScalingWithHaste(){
		return scaling_with_haste;
	}
}
